Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

treesitter: correctly recognize shebang #26

Merged
merged 3 commits into from
Mar 15, 2024
Merged

Conversation

ttytm
Copy link
Member

@ttytm ttytm commented Mar 15, 2024

Regardless of how we we proceed with treating the shebangs in vlang/v#21029

Currently, a shebang is not correctly recognized by tree-sitter. It's not highlighted and can break the highlighting of identifiers that follow it.

This PR aims to fix this.

  • Current
    Screenshot_20240315_084339

  • Updated
    Screenshot_20240315_084314

@ttytm
Copy link
Member Author

ttytm commented Mar 15, 2024

Working on the regression regarding reference types introduced in the recent upstream commit.

@spytheman
Copy link
Member

Working on the regression regarding reference types introduced in the recent upstream commit.

what do you mean?

@ttytm
Copy link
Member Author

ttytm commented Mar 15, 2024

what do you mean?

Tests are failing here because of a change in vlang/v#21025. It's fixed in vlang/v#21030. I'll see to work out a test case

@spytheman
Copy link
Member

Hm, I thought it was a pure refactoring, and the main CI tests passed. A test case will be much appreciated indeed.

@ttytm
Copy link
Member Author

ttytm commented Mar 15, 2024

Thought so too. It slipped through. But if it gives us extended test coverage, it had its blessings.

@ttytm ttytm merged commit 2c70e05 into vlang:main Mar 15, 2024
13 checks passed
@ttytm ttytm deleted the fix/shebang-hl branch March 15, 2024 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants